define(function(require,exports,module){
	var Grid=require("grid-1.0.0");
	var columns=[{
			key:"clear",
				name:"净房"
			},{
			key:"dirty",
			name:"脏房"
		},{
			key:"checkIn",
			name:"在住房",
		},{
			key:"willGo",
			name:"将走房"
		},{
			key:"appoint",
			name:"预订",
		},{
			key:"repairing",
			name:"维修房"
		},{
			key:"temporary",
			name:"临时态"
		},{
			key:"selfUse",
			name:"自用房"
		},{
			key:"free",
			name:"免费房"
		}];
	var SC_handover={
		init:function(widget,params){
			return new Grid({
				parentNode:".J-member-visit",
				url:"api/shiftchange/statistics",
				params:function(){
					return {
						//"member.memberSigning.room.building.pkBuilding":widget.get("subnav").getValue("building"),
						shiftChangeDate:params.startdate,
						fetchProperties:"*"
					};
				},
				model:{
					head:{
						title:"房态"
					},
					columns:columns
				},
				isInitPageBar: false,
			});
		},
		initPrint:function(widget,params){
			return new Grid({
				autoRender:false,
				isInitPageBar:false,
				parentNode:".J-member-visit-print",
				model:{
					head:{
						title:"房态"
					},
					columns:columns
				}
			});
		}
	
	};
	
	
	module.exports=SC_handover;
});